package com.itheima;

import java.util.Random;

public class Math {
    public static void main(String[] args) {
        Random r= new Random();
        for(int i = 1; i <= 10; i++){
            // 3. 获取随机数
            int num = r.nextInt(10) + 1;		// 1-10
            System.out.println(num);
        }

    }
}
